package com.wjw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * @author WuJianWei
 * @date 2022/2/28 20:00
 */
@Data
@TableName(value = "collect")
public class Collect implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "product_id")
    private Integer productId;

    @TableField(value = "collect_time")
    private LocalDateTime collectTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_COLLECT_TIME = "collect_time";

    @TableField(exist = false)
    private String productPicture;
    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private String title;
    @TableField(exist = false)
    private BigDecimal sellingPrice;
    @TableField(exist = false)
    private BigDecimal productPrice;
}